gBrowser.mPanelContainer.addEventListener('DOMContentLoaded', function(){
  if(content.location.href == "http://www.jandown.com/fetch.php") {
    saveDocument(window.content.document);
    BrowserCloseTabOrWindow();
  }
},false);